package com.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@Data
@TableName("operationlog")
public class OperationLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "operation_log_id", type = IdType.AUTO)
    private Long operationLogId;
    @TableField(value = "user_id")
    private Integer userid;
    @TableField(value = "operator_type")
    private Integer operatorType;
    @TableField(value = "operation_time", fill = FieldFill.INSERT)
    private LocalDateTime creationTime;
    @TableField(value = "msg")
    private String description;
    @TableField(value = "deleted")
    @TableLogic
    private String deleted;
}
